<?php

class Category
{
    private $id;
    private $name;

    // overloaded constructor, if parameters aren't inserted they default to null
    function __construct($id = null, $name = null)
    {
        $this->id = $id;
        $this->name = $name;
    }

    function getId()
    {
        return $this->id;
    }

    function setId($id)
    {
        $this->id = $id;
    }

    function getName()
    {
        return $this->name;
    }

    function setName($name)
    {
        $this->name = $name;
    }
}

?>
